package cn.hznc.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Getter;
import lombok.Setter;

/**
 * @Author：Administrator
 * @Date：2023/7/26 14:32
 */
@Getter
@Setter
@Table(name = "t_codescanner_configure")
@TableName(value = "t_codescanner_configure")
public class CodeScannerConfigureEntity{

    /**
     * 主键id
     */
    @Column(name = "id",type = MySqlTypeConstant.INT,length = 11,isKey = true,isAutoIncrement = true)
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 员工名
     */
    @Column(name = "operate_type",type = MySqlTypeConstant.VARCHAR,length = 100)
    @TableField(value = "operate_type")
    private String operateType;

    /**
     * 员工名
     */
    @Column(name = "type_name",type = MySqlTypeConstant.VARCHAR,length = 100)
    @TableField(value = "type_name")
    private String typeName;

    /**
     * 员工名
     */
    @Column(name = "start_bit",type = MySqlTypeConstant.INT,length = 3)
    @TableField(value = "start_bit")
    private Integer startBit;

    /**
     * 员工名
     */
    @Column(name = "offset",type = MySqlTypeConstant.INT,length = 3)
    @TableField(value = "offset")
    private Integer offset;

    /**
     * 串口号
     */
    @Column(name = "address",type = MySqlTypeConstant.VARCHAR,length = 100)
    @TableField(value = "address")
    private String address;

}
